/**
 * Created by webrx on 2024/4/24.
 */
import u1 from '@/components/user/u1.vue'
import u2 from '@/components/user/u2.vue'
import u3 from '@/components/user/u3.vue'
import type {App} from 'vue'

const cs: any = {u2, u3, u1}


//导入对象，必须有一个install函数
export default {
    install(app: App) {
        Object.keys(cs).forEach((key: string) => {
            app.component(key, cs[key])//遍历挂载组件
        })
    },
}
